import requests

r = requests.get("https://www.bagevent.com/account/dashboard")
print(r.text)


head = {
    "Cookie": '_ga=GA1.2.898728043.1615965992; __auc=13ad1c891783f1445b1a072ed33; MEIQIA_TRACK_ID=1psK7g7yqqODa45WOXfKCti4C9P; __asc=9ca8bc79178bfa3b255221887dc; Hm_lvt_1fc37bec18db735c69ebe77d923b3ab9=1615965992,1617948367,1618122880; BAGSESSIONID=6ad9a2e2-3cce-4aad-90f9-6db02c7131ef; JSESSIONID=9240D2CA094AEEA615852FF733838AD5; _gid=GA1.2.1277323345.1618122897; _gat=1; Hm_lpvt_1fc37bec18db735c69ebe77d923b3ab9=1618122897; BAG_EVENT_TOKEN_=02de735f68204d51009e7edda78e58c13a3fcdd1; BAG_EVENT_CK_KEY_="2780487875@qq.com"; BAG_EVENT_CK_TOKEN_=2440f5d17af838308ba4b390db81af38'
}
r = requests.get("https://www.bagevent.com/account/dashboard",headers = head)
print(r.text)
assert "<title>百格活动 - 账户总览</title>" in r.text